export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  searchLabelWidth: 110,//搜索按钮是否单独成行，并控制搜索按钮的长度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "分类id",
      prop: "categoryId",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
      type: "input",
    },
    {
      label: "父ID",
      prop: "parentId",
      type: "input",
      value: 0,
      placeholder: "请选择父ID 从0开始",
      rules: [
        {
          required: true,
          message: '请选择父ID',
          trigger: 'blur'
        }
      ],
    },
    {
      label: "分类名称",
      prop: "name",
      type: "input",
      search: true,
    },
    {
      label: "分类描述",
      prop: "remark",
      type: "input",
    },
    {
      label: "分类地址",
      prop: "path",
      type: "input",
      placeholder: "请输入分类地址{parent_id}-{child_id},...",
    },
    {
      label: "状态",
      prop: "status",
      type: "radio",
      dicData: [{
        label: '可用',
        value: 1
      }, {
        label: '禁用',
        value: 0
      }],
      value: 1
    },
    {
      label: "分类图标",
      prop: "icon",
      type: "input",
    },
    {
      label: "分类的显示图片",
      prop: "imgUrl",
      type: "input",
    },
    {
      label: "分类层级",
      prop: "classificationLevel",
      type: "input",
      placeholder: "请选择分类层级 从0开始",
      value: 0,
      rules: [
        {
          required: true,
          message: '请选择分类层级',
          trigger: 'blur'
        }
      ],
    },
    {
      label: "店铺id",
      prop: "shopId",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择店铺id',
          trigger: 'blur'
        }
      ],
    },
    {
      label: "排序",
      prop: "sortOrder",
      type: "input",
      value: 1,
      rules: [
        {
          required: true,
          message: '请选择排序',
          trigger: 'blur'
        }
      ]
    },
  ]
}
